// import { gohost } from "libs/api/app"

export const GET_PROJECT = "GET_PROJECT"
export const CHANGE_POINT_INDEX = "CHANGE_POINT_INDEX"


/**
 * 获取当前考核项
 * @param data
 * @returns {function(*)}
 */
export function fetchNowProject(data) {
  return async (dispatch) => {
    // let {data} = await gohost(query)
    dispatch({
      type: GET_PROJECT,
      data
    })
  }
}

/**
 * 改变当前【考核项-考核点】的index
 * @param data
 * @returns {function(*)}
 */
export function changePointIndex(data) {
  return async (dispatch) => {
    // let {data} = await gohost(query)
    dispatch({
      type: CHANGE_POINT_INDEX,
      data
    })
  }
}
